package com.example.mplayer.data

import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey

@Entity(tableName = "courses")
data class Course(
    @PrimaryKey
    val id: String,
    val title: String
)

@Entity(tableName = "chapters")
data class Chapter(
    @PrimaryKey
    val id: String,
    val courseId: String,
    val parentId: String?,
    val title: String
)

@Entity(tableName = "videos")
data class Video(
    @PrimaryKey
    val id: String,
    val chapterId: String,
    val title: String,
    val url: String
) 